package com.ws.repository;

import com.github.pagehelper.Page;
import com.ws.entity.Reader;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReaderRepository {

    Page<Reader> getReaderPage(Reader reader);

    void saveReader(Reader reader);

    Reader getReaderBasicInfo(@Param("readerId")Long readerId);

    void delReader(@Param("readerId")Long readerId);

    void updateReader(Reader reader);

    List<Reader> getReaderList(Reader reader);
}